import React from 'react';
import { connect } from 'dva'
import { routerRedux } from 'dva/router';
import { Grid, Icon, Badge, Toast, Carousel, WhiteSpace, WingBlank } from 'antd-mobile';
import DY from '../Dyadminister/dyadminister';
import HD from '../Hdadminister/hdadminister';
import DF from '../Dfadminister/dfadminister'

class djsupervises extends React.Component{
  constructor(props) {
    super(props);
    this.state = {
      data:['','',''],
      model: [],
    };
  }

a=()=>{return(<DY/>)}
b=()=>{return(<HD/>)}
c=()=>{return(<DF/>)}

  render(){
    let d=[];
    d.push(this.a(),this.b(),this.c())
    return(
        <Carousel
          className="my-carousel"
          autoplay={false}
          dots={false}
          infinite
          selectedIndex={1}
           beforeChange={(from, to) => console.log(`slide from ${from} to ${to}`)}
          afterChange={index => console.log('slide to', index)}
        >
          {d.map(ii => (<div>{ii}</div>))}

        </Carousel>

    )
  }
}

function mapStateToProps({ work }){
  return {
    work
  };
}
export default connect(mapStateToProps)(djsupervises);
